package com.coder.bike.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.coder.bike.entity.Payment;
import com.coder.bike.utils.Result;

import java.math.BigDecimal;

public interface IPaymentService extends IService<Payment> {
    /**
     * 创建支付订单
     */
    Result  createPayment(Integer customerId, BigDecimal amount, String subject);
    
    /**
     * 查询支付状态
     */
    Result  queryPayment(String paymentNo);
    
    /**
     * 模拟支付成功回调
     */
    Result  mockPaymentSuccess(String paymentNo);

    Result getPaymentRecords(Page<Payment> page, Integer customerId);
}